<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>



			<style>
		        .cols{
		            vertical-align:top;
		        }
		    </style> 
		    
		     
<html>
 <head>
  <title>Log</title>
     <style type="text/css">
    	@import url("css/estilos.css");
    </style>
 </head>
 <body>
	 <f:view>
		 <a4j:form id="form">
		 
			 <rich:panel header="LOG" style="width: 800px">
			 	
			 	
			 	<!-- 
			 	<a4j:commandButton value="Cargar LOG" action="#{logBean.cargarLog}" reRender="form" />
			 	--> 
			 	<div align="center">
				 	<h:panelGrid columns="2" width="50%">
					 	<a4j:commandButton value="Cargar LOG" action="#{logBean.cargarLog}" reRender="form" />
					 	<a4j:commandButton value="Borrar LOG" action="#{logBean.eliminarLog}" reRender="form" />
				 	</h:panelGrid>
			 	</div>
			 	
			 	 
			 	<br/>
			 	<br/>
			 	
			 	<a4j:outputPanel id="panelResultado" >
				
					<h:panelGrid columns="1" width="100%">
						
						<a4j:repeat value="#{logBean.datos}" var="dato">
						
							<rich:simpleTogglePanel switchType="client" label="#{dato.propiedad}" opened="#{dato.opened}" >
								
								<h:panelGrid columns="1" width="100%">
		
									<rich:panel bodyClass="inpanelBody" styleClass="celeste1">
										<h:inputTextarea value="#{dato.xml}" cols="130" rows="20" />
									</rich:panel>
								
								</h:panelGrid>
								
							</rich:simpleTogglePanel>
						
						</a4j:repeat>
					
					</h:panelGrid>
							
				</a4j:outputPanel>
			    
			    <br/>
			    
			 </rich:panel>
		 
		 </a4j:form>
	 </f:view>
 </body>
</html>
